package com.eyedsion.his.web.entity.common;

import java.io.Serializable;
import java.util.List;

/**
 * @author 彭长云
 * @Description:存放webservice返回结果
 * @date 2019/1/8 10:25
 */
public class WebServiceResult<T> implements Serializable{
    //结果返回的数据
    private List<T> list;
    //状态
    private String status;
    //消息
    private String msg;
    //分页参数:当前页
    private Integer pageIndex;
    //分页参数:每页数量
    private Integer pageSize;
    //查询到的数据总条数
    private Integer totalCount;
    //总页数
    private Integer totalPage;

    public WebServiceResult(List<T> list, List<T> updatelist, String status, String msg, Integer pageIndex, Integer pageSize, Integer totalCount) {
        this.list = list;
        this.status = status;
        this.msg = msg;
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
    }

    public WebServiceResult() {
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }
}
